package com.woniuxy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.woniuxy.entity.dto.LogDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

/**
 * @TableName log
 */
@TableName(value ="log")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Log {
    private Integer id;

    private String operator;//操作人

    private String methodName;

    private String className;

    private String endTime;//结束时间

    private String operationTime;//开始时间
    public Log(LogDTO logDTO){
        BeanUtils.copyProperties(logDTO,this);
    }
}